package com.webservice;

import com.domain.DataFile;

import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import java.io.InputStream;


@WebService(targetNamespace = "http://39.98.59.6/mmms_test/ws/file")
public interface FileWebservice {
    /**
     * * 上传文件
     * @param  myFile
     * @return result 正常返回1，错误返回0
     */
    public String uploadFile(@WebParam(name = "DataFile") DataFile myFile);

    /**
     * 下载文件
     * @param myFile
     * @return
     */
    public DataFile downloadFile(@WebParam(name = "DataFile")DataFile myFile);


//    /**
//     * 上传文件2
//     * @param imageString
//     * @param fileName
//     * @return
//     */
//    @WebResult(name = "String")
//    public String uploadImage(@WebParam(name = "imageString")String imageString,
//                              @WebParam(name = "fileName")String fileName);

    /**
     * 下载文件2
     * @param fileName
     * @return
     */
    @WebResult(name = "String")
    public String downloadImage(@WebParam(name = "fileName")String fileName);

}
